var DataContainer = Class.create(); DataContainer.prototype = { initialize : function () { this.noMatchingCitiesText = '     There are no cities matching your request. Try again or click on the + to see valid destination cities.'; this.countries = [ new Country("AR","アルゼンチン"),new Country("AT","オーストリア"),new Country("AU","オーストラリア"),new Country("CH","スイス"),new Country("CL","チリ"),new Country("CN","中国"),new Country("DE","ドイツ"),new Country("DK","デンマーク"),new Country("ES","スペイン"),new Country("FR","フランス"),new Country("GB","イギリス"),new Country("HK","香港"),new Country("HU","ハンガリー"),new Country("ID","インドネシア"),new Country("IN","インド"),new Country("IT","イタリア"),new Country("JP","日本"),new Country("KH","カンボジア"),new Country("KR","韓国"),new Country("MM","ミャンマー"),new Country("NC","ニューカレドニア"),new Country("NL","オランダ"),new Country("NO","ノルウェー"),new Country("NZ","ニュージーランド"),new Country("PH","フィリピン"),new Country("SE","スウェーデン"),new Country("SG","シンガポール"),new Country("TH","タイ"),new Country("TW","台湾"),new Country("VN","ベトナム"),new Country("VU","バヌアツ") ]; this.airports = [ new Airport("ADL","アデレード","AU",this.countries),new Airport("AVV","アバロン (メルボルン)","AU",this.countries),new Airport("AMS","アムステルダム","NL",this.countries),new Airport("ASP","アリススプリングズ","AU",this.countries),new Airport("ARM","アーミデイル","AU",this.countries),new Airport("VIE","ウィーン","AT",this.countries),new Airport("WLG","ウェリントン","NZ",this.countries),new Airport("WGA","ウォガウォガ","AU",this.countries),new Airport("AYQ","エアーズロック","AU",this.countries),new Airport("EMD","エメラルド","AU",this.countries),new Airport("OSL","オスロ","NO",this.countries),new Airport("ABX","オルベリー","AU",this.countries),new Airport("AKL","オークランド","NZ",this.countries),new Airport("KTA","カラーサ","AU",this.countries),new Airport("KGI","カルグーリー","AU",this.countries),new Airport("CBR","キャンベラ","AU",this.countries),new Airport("ZQN","クイーンズタウン","NZ",this.countries),new Airport("CHC","クライストチャーチ","NZ",this.countries),new Airport("GOV","グベア","AU",this.countries),new Airport("GLT","グラッドストーン","AU",this.countries),new Airport("CNS","ケアンズ","AU",this.countries),new Airport("CGN","ケルン","DE",this.countries),new Airport("CFS","コフスハーバー","AU",this.countries),new Airport("CPH","コペンハーゲン","DK",this.countries),new Airport("OOL","ゴールドコースト","AU",this.countries),new Airport("MCY","サンシャインコースト","AU",this.countries),new Airport("SCL","サンティアゴ","CL",this.countries),new Airport("REP","シエムリアプ","KH",this.countries),new Airport("SYD","シドニー","AU",this.countries),new Airport("STR","シュトゥットガルト","DE",this.countries),new Airport("SIN","シンガポール","SG",this.countries),new Airport("CGK","ジャカルタ","ID",this.countries),new Airport("GVA","ジュネーブ","CH",this.countries),new Airport("ARN","ストックホルム","SE",this.countries),new Airport("ICN","ソウル","KR",this.countries),new Airport("TSV","タウンズビル","AU",this.countries),new Airport("TMW","タムワース","AU",this.countries),new Airport("DAD","ダナン","VN",this.countries),new Airport("DBO","ダボ","AU",this.countries),new Airport("DRW","ダーウィン","AU",this.countries),new Airport("CTL","チャールビル","AU",this.countries),new Airport("ZRH","チューリッヒ","CH",this.countries),new Airport("DPO","デボンポート","AU",this.countries),new Airport("DUS","デュッセルドルフ","DE",this.countries),new Airport("DEL","デリー","IN",this.countries),new Airport("DPS","デンパサール (バリ州)","ID",this.countries),new Airport("NAA","ナラブリ","AU",this.countries),new Airport("NUE","ニュルンベルグ","DE",this.countries),new Airport("NTL","ニューカッスル","AU",this.countries),new Airport("ZNE","ニューマン","AU",this.countries),new Airport("NCE","ニース","FR",this.countries),new Airport("NOU","ヌメア","NC",this.countries),new Airport("HPH","ハイフォン","VN",this.countries),new Airport("HAN","ハノイ","VN",this.countries),new Airport("HAJ","ハノーバー","DE",this.countries),new Airport("HTI","ハミルトン島","AU",this.countries),new Airport("HAM","ハンブルグ","DE",this.countries),new Airport("BNK","バリナ","AU",this.countries),new Airport("BCN","バルセロナ","ES",this.countries),new Airport("BKK","バンコク","TH",this.countries),new Airport("BDB","バンダバーグ","AU",this.countries),new Airport("PBO","パラバーデュー","AU",this.countries),new Airport("CDG","パリ","FR",this.countries),new Airport("PER","パース","AU",this.countries),new Airport("VII","ビン","VN",this.countries),new Airport("HUI","フエ","VN",this.countries),new Airport("FRA","フランクフルト","DE",this.countries),new Airport("HVB","フレーザーコースト","AU",this.countries),new Airport("EZE","ブエノスアイレス","AR",this.countries),new Airport("BUD","ブダペスト","HU",this.countries),new Airport("BNE","ブリズベン","AU",this.countries),new Airport("BME","ブルーム","AU",this.countries),new Airport("PNH","プノンペン","KH",this.countries),new Airport("PPP","プロゼルピーヌ","AU",this.countries),new Airport("TXL","ベルリン","DE",this.countries),new Airport("HBA","ホバート","AU",this.countries),new Airport("SGN","ホーチミン市","VN",this.countries),new Airport("VLI","ポートビラ","VU",this.countries),new Airport("PHE","ポートヘドランド","AU",this.countries),new Airport("PQQ","ポートマクォーリー","AU",this.countries),new Airport("MKY","マッカイ","AU",this.countries),new Airport("MAD","マドリッド","ES",this.countries),new Airport("MNL","マニラ","PH",this.countries),new Airport("MUC","ミュンヘン","DE",this.countries),new Airport("MQL","ミルジューラ","AU",this.countries),new Airport("BOM","ムンバイ","IN",this.countries),new Airport("MEL","メルボルン","AU",this.countries),new Airport("MRZ","モリー","AU",this.countries),new Airport("RGN","ヤンゴン","MM",this.countries),new Airport("LYS","リヨン","FR",this.countries),new Airport("ROK","ロックハンプトン","AU",this.countries),new Airport("LHR","ロンドン","GB",this.countries),new Airport("LDH","ロード・ハウ島","AU",this.countries),new Airport("FCO","ローマ","IT",this.countries),new Airport("LST","ローンセストン","AU",this.countries),new Airport("PVG","上海","CN",this.countries),new Airport("PEK","北京","CN",this.countries),new Airport("TPE","台北","TW",this.countries),new Airport("KIX","大阪","JP",this.countries),new Airport("NRT","東京","JP",this.countries),new Airport("HKG","香港","HK",this.countries) ]; this.classes = [ new BookingClass("Y","ECO","エコノミー") , new BookingClass("P","PRM","国際線プレミアムエコノミー") , new BookingClass("J","BUS","ビジネス/ファースト") ]; this.isSaleDate = [false]; this.travelDate = []; this.fromAirports = ["BKK","PEK","DAD","DEL","DPS","HPH","HAN","SGN","HKG","HUI","CGK","MNL","BOM","KIX","ICN","PVG","SIN","TPE","NRT","VII"]; this.popularFromAirports = null; this.toAirports = ["ADL","ABX","ASP","AMS","ARM","AKL","AVV","AYQ","BNK","BKK","BCN","TXL","BNE","BME","BUD","EZE","BDB","CNS","CBR","CTL","CHC","CFS","CGN","CPH","DAD","DRW","DPO","DBO","DUS","EMD","FRA","HVB","GVA","GLT","OOL","GOV","HPH","HAM","HTI","HAN","HAJ","SGN","HBA","HKG","HUI","CGK","KGI","KTA","LST","LHR","LDH","LYS","MKY","MAD","MNL","MEL","MQL","MRZ","BOM","MUC","NAA","NTL","ZNE","NCE","NOU","NUE","OSL","PBO","CDG","PER","PNH","PHE","PQQ","VLI","PPP","ZQN","ROK","FCO","SCL","REP","SIN","ARN","STR","MCY","SYD","TMW","TSV","VIE","VII","WGA","WLG","RGN","ZRH"]; this.popularToAirports = ["ADL","BNE","CNS","CBR","DRW","HBA","MEL","PER","SYD"]; this.currentDate = [20091113 ]; this.matrix = 'rrrrrvrrrrrrrrrrrrrrvrrrrrrrrrrrrrrrrrrrrrrrrrrrrvrrrrrrrrrrrrrrrrrrrrrrrrrvrrrrrrrrvrrrrrvrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr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rrvrrrrrrrrrrrrrrrrrrrrrrrrrrrrvrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr'; // item 0 = valid flight - if true then this from/to combination is valid. this.VALID_FLIGHT_INDEX = 0; // item 1 = economy - if true then economy is to be available for this from/to combination this.CLASS_ECONOMY_INDEX = 1; // item 2 = premium - if true then premium economy is to be available for this from/to combination this.CLASS_PREMIUM_INDEX = 2; // item 3 = business - if true then business is to be available for this from/to combination this.CLASS_BUSINESS_INDEX = 3; // item 4 = first - if true then first is to be available for this from/to combination this.CLASS_FIRST_INDEX = 4; //For setting error Messages dynamically this.errorMsgs = null; }, getClasses : function () { return this.classes; }, getAirports : function () { return this.airports; }, getCountries : function () { return this.countries; }, getToAirports : function () { return this.toAirports; }, getFromAirports : function () { return this.fromAirports; }, getPopularFromAirports : function () { return this.popularFromAirports; }, getValidFlightIndex : function () { return this.VALID_FLIGHT_INDEX; }, getEconomyClassIndex : function () { return this.CLASS_ECONOMY_INDEX; }, getPremiumClassIndex : function () { return this.CLASS_PREMIUM_INDEX; }, getBusinessClassIndex : function () { return this.CLASS_BUSINESS_INDEX; }, getFirstClassIndex : function () { return this.CLASS_FIRST_INDEX; }, getMatrix : function () { return this.matrix; }, getIsSaleDate : function(){ return this.isSaleDate; }, getTravelDate : function(){ return this.travelDate; }, getCurrentDate : function(){ return this.currentDate; }, getnoMatchingCitiesText : function() { return this.noMatchingCitiesText; } }